#define  _CRT_SECURE_NO_WARNINGS

#include "list.h"

namespace yjz
{
	void test_list1()
	{
		list<int> lt;
		lt.push_back(1);
		lt.push_back(2);
		lt.push_back(3);
		lt.push_back(4);
		lt.push_back(5);

		lt.push_front(6);
		lt.insert(lt.begin(), 7);
		list<int>::iterator it = lt.begin();
		while (it != lt.end())
		{
			cout << *it << " ";
			++it;
		}
		cout << endl;
	}
}

int main()
{
	yjz::test_list1();
	return 0;
}